//
//  WmcMediaBrowsePreviewCell.swift
//  YPWatermarkCamera
//
//  Created by 赵新 on 2022/3/29.
//

import UIKit

// MARK: - [WmcMediaBrowsePreviewCell]

class WmcMediaBrowseImagePreviewCell: WmcBaseCollectionCell {
    lazy var perview: WmcImageBrowsePreview = {
        let perview = WmcImageBrowsePreview()

        return perview
    }()

    /// 展示的图片
    var image: WmcImage? {
        didSet { perview.configImage(image) }
    }

    override func layoutSubviews() {
        super.layoutSubviews()
    }

    func resetSubViewStatusWhenCellEndDisplay() {
        perview.scrollView.zoomScale = 0.5
    }

    override func makeUI() {
        backgroundColor = .black
        perview.frame = bounds
        addSubview(perview)
    }
}
